import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import login from '@/components/login'
import login1 from '@/components/login1'
import verify from '@/components/verify'
import personal_center from '@/components/personal_center'
import personal_information from '@/components/personal_information'
import updateuserName from '@/components/updateuserName'
import user_address from '@/components/user_address'
import addAddress from '@/components/addAddress'
import user_setting from '@/components/user_setting'
import account_security from '@/components/account_security'
import updatePassword from '@/components/updatePassword'
import updatePhone from '@/components/updatePhone'
import VueCookie from 'vue-cookie'
import { PasswordInput, NumberKeyboard } from 'vant';
import BusinessPage from '@/components/BusinessPage';
import SearchPage from '@/components/SearchPage';
import BusinessCenter from '@/components/BusinessCenter';
import qzd from '@/components/qzd'

import orderszhongxin from "@/components/orderszhongxin"
import bzhongxin from "@/components/bzhongxin"
import updateevaluation from "@/components/updateevaluation"
import bqzd from "@/components/bqzd"
import xinxinxin from "@/components/xinxinxin"
import peis from "@/components/peis"
import allorders from "@/components/allorders"
import myorders from "@/components/myorders"
import dishes from '@/components/dishes'
import searchLike from '@/components/searchLike'
import submitOrders from '@/components/submitOrders'
import paySuccess from '@/components/paySuccess'



Vue.use(PasswordInput);
Vue.use(NumberKeyboard);


Vue.use(VueCookie)
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/login',
      name: 'login',
      component: login
    },
    {
      path: '/login1',
      name: 'login1',
      component: login1
    },
    {
      path: '/verify',
      name: 'verify',
      component: verify
    },
    {
      path: '/center',
      name: 'personal_center',
      component: personal_center
    },
    {
      path: '/information',
      name: 'personal_information',
      component: personal_information
    },
    {
      path: '/updateuserName',
      name: 'updateuserName',
      component: updateuserName
    },
    {
      path: '/user_address',
      name: 'user_address',
      component: user_address
    },
    {
      path: '/addAddress',
      name: 'addAddress',
      component: addAddress
    },
    {
      path: '/user_setting',
      name: 'user_setting',
      component: user_setting
    },
    {
      path: '/security',
      name: 'account_security',
      component: account_security
    },
    {
      path: '/updatePassword',
      name: 'updatePassword',
      component: updatePassword
    },
    {
      path: '/updatePhone',
      name: 'updatePhone',
      component: updatePhone
    },
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/BusinessPage',
      name: 'BusinessPage',
      component: BusinessPage
    },
    {
      path: '/SearchPage',
      name: 'SearchPage',
      component: SearchPage
    },
    {
      path: '/BusinessCenter',
      name: 'BusinessCenter',
      component: BusinessCenter
    },
    {
      path: '/orderszhongxin',
      name: 'orderszhongxin',
      component: orderszhongxin
    },
    {
      path: '/qzd',
      name: 'qzd',
      component: qzd
    },
    {
      path: '/updateevaluation',
      name: 'updateevaluation',
      component: updateevaluation
    },

    {
      path: '/xinxinxin',
      name: 'xinxinxin',
      component: xinxinxin
    },
    {
      path: '/peis',
      name: 'peis',
      component: peis
    },
    {
      path: '/bzhongxin',
      name: 'bzhongxin',
      component: bzhongxin
    },
    {
      path: '/bqzd',
      name: 'bqzd',
      component: bqzd
    },
    {
      path: '/allorders',
      name: 'allorders',
      component: allorders
    },
    {
      path: '/myorders',
      name: 'myorders',
      component: myorders
    },
    {
      path: '/dishes',
      name: 'dishes',
      component: dishes
    },
    {
      path: '/searchLike',
      name: 'searchLike',
      component: searchLike
    },
    {
      path: '/submitOrders',
      name: 'submitOrders',
      component: submitOrders
    },
    {
      path: '/paySuccess',
      name: 'paySuccess',
      component: paySuccess
    }
  ]
})
